package com.trace.basic;

import java.util.Date;

/**
 * Created by denglw on 2020/1/14.<br/>
 * Desc: 线程安全 -- 可变常量
 */
@SuppressWarnings({"unused", "AliDeprecation"})
public final class FinalTest {

/**
     * 日期时间
     */
    private final Date date = new Date();

    public void modifyDate() {
        date.setYear(2019);
        date.setHours(12);
    }

    public Date getDate() {
        return date;
    }
}
